﻿<%@ Page Language="C#" AutoEventWireup="true"  CodeBehind="Grid.aspx.cs" Inherits="WebApplication1.Grid" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <style>
    th{
        text-align:center    
    }
    td{
        text-align:center;
        width:200px
    }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <asp:Button Text="添加" runat="server" ID="btnAdd" OnClick="btnAdd_Click" Width="780px"/>
            <asp:GridView runat="server" ID="Gv1" AutoGenerateColumns="false" OnRowDeleting="Gv1_RowDeleting" OnRowCancelingEdit="Gv1_RowCancelingEdit" AllowPaging="true"  OnRowEditing="Gv1_RowEditing" OnPageIndexChanging="Gv1_PageIndexChanging"  OnRowUpdating="Gv1_RowUpdating" Width="779px" >
                <Columns>
                    <asp:BoundField HeaderText="Id" DataField="Id"/>
                    <asp:BoundField HeaderText="行动名称" DataField="ActionName"/>
                    <asp:BoundField HeaderText="行动内容" DataField="ActionContent"/>
                    <asp:ButtonField HeaderText="详情" CommandName="detial" ButtonType="Link" Text="详情"/>
                    <asp:CommandField  HeaderText="顶端操作" ShowDeleteButton="true" ShowEditButton="true" />
                </Columns>
            </asp:GridView>
        </div>
    </form>
</body>
</html>
